package com.firemoss.atonement.example.contactmanager.control.event
{
	import com.firemoss.atonement.example.contactmanager.model.Company;
	
	import flash.events.Event;
	
	public class CompanyEvent extends Event
	{
		public static const SAVE_COMPANY : String = "saveCompany"
		public static const SAVE_COMPANY_STARTED : String = "saveCompanyStarted"
		public static const SAVE_COMPANY_COMPLETE : String = "saveCompanyComplete"
		public static const SAVE_COMPANY_FAILED : String = "saveCompanyFailed"
			
		public static const LIST_COMPANIES : String = "listCompanies"
		public static const LIST_COMPANIES_STARTED : String = "listCompaniesStarted"
		public static const LIST_COMPANIES_COMPLETE : String = "listCompaniesComplete"
		public static const LIST_COMPANIES_FAILED : String = "listCompaniesFailed"
			
		public var company : Company
		public var companies : Array
		
		public function CompanyEvent(type:String, company : Company = null, companies : Array = null, bubbles:Boolean=true, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			
			this.company = company
			this.companies = companies
		}
	}
}